package com.example.java250806_spring_ioc_demo.controller;

import com.example.java250806_spring_ioc_demo.config.DbTypeConfig;
import com.example.java250806_spring_ioc_demo.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/yaml")
@RestController
public class YamlController {
    @Value("${yaml}")
    private String yaml;

//    @Autowired
//    private Student student;

    @Autowired
    private DbTypeConfig dbTypeConfig;

    @RequestMapping("/read")
    public String read(){
        System.out.println(yaml);
        return "success";
    }
}
